/**
 * 
 */
package IC.lir.instructions;

import IC.lir.operands.Operand;
import IC.lir.operands.RegOperand;
import IC.lir.Instruction;

/**
 * A superclass for both kinds of MoveArray instructions
 *
 */
abstract public class MoveArrayInstr extends Instruction {
	private RegOperand 	array;
	private Operand 	index;

	/**
	 * Create a MoveArray load instruction
	 * @param array the array operand
	 * @param index the index specifier
	 * @param dest the destination
	 */
	public MoveArrayInstr(RegOperand array, Operand index) {
		this.array = array;
		this.index = index;
	}

	/**
	 * @return the array
	 */
	public RegOperand getArray() {
		return array;
	}

	/**
	 * @return the index
	 */
	public Operand getIndex() {
		return index;
	}
}
